package com.tf.pemporaryfood.domain.entity;

import java.util.Date;

public class Goods {
    private Long goodsId;                 // 商品id
    private String goodsName;             // 商品名称
    private Double goodsPrice;            // 商品价格
    private Long cateId;                  // 分类id
    private Integer goodsNumber;          // 商品数量
    private Date goodsProductionTime;    // 商品生产时间
    private Integer goodsSaleNumber;     // 销量 商品每产生一笔交易时加1
    private Long hotNumber;               // 商品热度 用户查看该商品时加1
    private Integer goodsKeepDays;       // 保质天数
    private String goodsLogo;             // 商品图标
    private Date goodsCreateTime;        // 商品更新时间
    private Date goodsUpdateTime;        // 商品创建时间

    public Goods() {}

    public Goods(Long goodsId, String goodsName, Double goodsPrice, Long cateId, Integer goodsNumber, Date goodsProductionTime, Integer goodsSaleNumber, Long hotNumber, Integer goodsKeepDays, String goodsLogo, Date goodsCreateTime, Date goodsUpdateTime) {
        this.goodsId = goodsId;
        this.goodsName = goodsName;
        this.goodsPrice = goodsPrice;
        this.cateId = cateId;
        this.goodsNumber = goodsNumber;
        this.goodsProductionTime = goodsProductionTime;
        this.goodsSaleNumber = goodsSaleNumber;
        this.hotNumber = hotNumber;
        this.goodsKeepDays = goodsKeepDays;
        this.goodsLogo = goodsLogo;
        this.goodsCreateTime = goodsCreateTime;
        this.goodsUpdateTime = goodsUpdateTime;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Long getCateId() {
        return cateId;
    }

    public void setCateId(Long cateId) {
        this.cateId = cateId;
    }

    public Integer getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(Integer goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public Date getGoodsProductionTime() {
        return goodsProductionTime;
    }

    public void setGoodsProductionTime(Date goodsProductionTime) {
        this.goodsProductionTime = goodsProductionTime;
    }

    public Integer getGoodsSaleNumber() {
        return goodsSaleNumber;
    }

    public void setGoodsSaleNumber(Integer goodsSaleNumber) {
        this.goodsSaleNumber = goodsSaleNumber;
    }

    public Long getHotNumber() {
        return hotNumber;
    }

    public void setHotNumber(Long hotNumber) {
        this.hotNumber = hotNumber;
    }

    public Integer getGoodsKeepDays() {
        return goodsKeepDays;
    }

    public void setGoodsKeepDays(Integer goodsKeepDays) {
        this.goodsKeepDays = goodsKeepDays;
    }

    public String getGoodsLogo() {
        return goodsLogo;
    }

    public void setGoodsLogo(String goodsLogo) {
        this.goodsLogo = goodsLogo;
    }

    public Date getGoodsCreateTime() {
        return goodsCreateTime;
    }

    public void setGoodsCreateTime(Date goodsCreateTime) {
        this.goodsCreateTime = goodsCreateTime;
    }

    public Date getGoodsUpdateTime() {
        return goodsUpdateTime;
    }

    public void setGoodsUpdateTime(Date goodsUpdateTime) {
        this.goodsUpdateTime = goodsUpdateTime;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "goodsId=" + goodsId +
                ", goodsName='" + goodsName + '\'' +
                ", cateId=" + cateId +
                ", goodsNumber=" + goodsNumber +
                ", goodsProductionTime=" + goodsProductionTime +
                ", goodsSaleNumber=" + goodsSaleNumber +
                ", hotNumber=" + hotNumber +
                ", goodsKeepDays=" + goodsKeepDays +
                ", goodsLogo='" + goodsLogo + '\'' +
                ", goodsCreateTime=" + goodsCreateTime +
                ", goodsUpdateTime=" + goodsUpdateTime +
                '}';
    }

    public Double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }
}
